<?php 
echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/customer_review.css');
echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/ui-darkness/jquery-ui-1.8.16.custom.css');
echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery-1.6.2.min.js');
echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery-ui-1.8.16.custom.min.js');
?>
<script type="text/javascript">
$(function() {
	$("#dialog:ui-dialog").dialog("destroy");

	$("#dialog-confirm").dialog({
		resizable: false,
		modal: true,
		autoOpen: false,
		show: "blind",
		hide: "explode",
		buttons: {
			OK: function() {
				//$("#customer").submit();
				$(this).dialog("close");
				location.href="<?php echo $this->baseUrl('/index'); ?>";
			}
		}
	});

	$("#confirm").click(function() {
		$("#dialog-confirm").dialog("open");
		return false;
	});
});
</script>
<?php
$this->title = "Customers Registration Review";
$this->headTitle($this->title);
?>
<!-- ?php $this->customer = $customers; ? -->
<h1><a href="<?php echo $this->url(array('controller'=>'index', 'action'=>'index'), null, true); ?>">Home</a> > <?php echo $this->escape($this->title); ?></h1>
<div class="cont">
<div class="review">
<span>Customer No : <?php echo $this->customers->cust_no; ?></span>
<span>Name : <?php echo $this->customers->cust_title . ". " . $this->customers->cust_first_name . " " . $this->customers->cust_last_name; ?></span>
<span>Address : <?php echo $this->customers->cust_address; ?></span>
<span>Suburb : <?php echo $this->customers->cust_suburb; ?></span>
<span>State : <?php echo $this->customers->cust_state; ?></span>
<span>Post Code : <?php echo $this->customers->cust_post_code; ?></span>
<span>Home Phone : <?php echo $this->customers->cust_home_phone; ?></span>
<span>Work Phone : <?php echo $this->customers->cust_work_phone; ?></span>
<span>Mobile Phone : <?php echo $this->customers->cust_mobile_phone; ?></span>
<span>Payment Method : <?php echo $this->customers->cust_pay_method; ?></span>
</div>
<a class="button" href="<?php echo $this->url(array('controller'=>'customer', 'action'=>'edit', 'cust_no'=>$this->customers->cust_no)); ?>">Back</a>
<a class="button" id="confirm" href="<?php echo $this->url(array('controller'=>'index', 'action'=>'index')); ?>">Confirm</a>
</div>
<div id="dialog-confirm" title="SUCCESS">
<p>Data has been successfully saved.</p>
</div>